package com.zbdx.service.impl;


import com.zbdx.dao.ShoppingGoodsDao;
import com.zbdx.dao.impl.shoppingGoodsDaoImpl;
import com.zbdx.domain.product;
import com.zbdx.service.ShoppingGoodsService;

import java.sql.SQLException;

/**
 * @version 1.0
 * @Auther 樊航宇
 * @Date 2024/9/16 16:06
 * @注释
 */
public class ShoppingGoodsServiceImpl implements ShoppingGoodsService {


    private ShoppingGoodsDao shoppingGoodsDao = new shoppingGoodsDaoImpl();
    @Override
    public product selectById(int pid) throws SQLException {

        product product = shoppingGoodsDao.selectById(pid);

        return product;
    }
}
